<template>
  <div class="aiseo-home-serviceProcess">
    <div class="buttonConsultation" @click="handleOpenChat">
      <div class="buttonConsultation-inner">看完了？点这里立即与客服沟通!</div>
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";
import EventBus from "@/utils/eventBus.js";
const props = defineProps({
  message: {
    type: String,
    default: "您好，我想了解更多信息",
  },
});
const handleOpenChat = () => {
  EventBus.emit("openCustomerChat", {
    message: props.message,
  });
};
</script>

<style lang="scss" scoped>
.aiseo-home-serviceProcess {
  width: 100%;
  height: 319px;
  display: flex;
  align-items: center;
  justify-content: center;
  .buttonConsultation {
    margin: 120px auto;
    width: 528px;
    height: 79px;
    border-radius: 50px;
    border: 3px solid #1a1a1a;
    text-align: center;
    line-height: 79px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; /* 添加过渡效果 */
    .buttonConsultation-inner {
      width: 100%;
      height: 100%;
      border-radius: 40px;
      transition: all 0.3s ease; /* 添加过渡效果 */
    }
  }
  .buttonConsultation:hover {
    width: 716px;
    height: 87px;
    color: #ffffff;
    border: 3px solid #e62e3d;
    padding: 3px;
    box-sizing: border-box;
    transition: all 0.3s ease; /* 添加过渡效果 */

    .buttonConsultation-inner {
      background: #e62e3d;
      transition: all 0.3s ease; /* 添加过渡效果 */
    }
  }
}
</style>
